class IssuesClassification {
  /// P1数
  int p1Count;

  /// P2数
  int p2Count;

  /// P3数
  int p3Count;

  /// P4数
  int p4Count;

  /// 优化建议数
  int suggestionCount;

  /// UI展示及文案数
  int uiIssuesCount;

  /// 未处理数
  int unresolvedCount;

  /// 处理中数
  int resolvingCount;

  /// 已处理数
  int resolvedCount;

  /// 验证中数
  int verifyingCount;

  /// 重复打开数
  int reopenedCount;

  int get pendingToResolveCount => unresolvedCount + resolvingCount;

  int get pendingToVerifyCount => resolvedCount + verifyingCount;

  IssuesClassification(
      {this.p1Count,
      this.p2Count,
      this.p3Count,
      this.p4Count,
      this.suggestionCount,
      this.uiIssuesCount,
      this.unresolvedCount,
      this.resolvingCount,
      this.resolvedCount,
      this.verifyingCount,
      this.reopenedCount});
}

class BugOutlineStats {
  /// ??case总数??
  int totalCount;

  /// 执行总数
  int hasExecuted;

  /// 未执行总户数
  int unExecuted;

  /// case总数
  int caseTotal;

  /// 开发执行总数
  int rdExecutiveCount;

  /// 开发执行率
  String rdExecutiveRate;

  /// 开发执行率数字
  double get rdExecutiveRateValue {
    return 0;
  }

  /// 测试case执行数
  int notRdExecutiveCount;

  /// 测试case执行率
  String notRdExecutiveRate;

  /// bug总数
  int bugTotal;

  /// 活动bug数
  int bugOpening;

  /// 已关bug数
  int bugClosed;

  /// bug率
  String bugRate;

  /// bug率数字
  double get bugRateValue {
    return 0;
  }

  /// 未执行通过数
  int executedNotPass;

  BugOutlineStats(
      {this.totalCount,
      this.hasExecuted,
      this.unExecuted,
      this.caseTotal,
      this.rdExecutiveCount,
      this.rdExecutiveRate,
      this.notRdExecutiveCount,
      this.notRdExecutiveRate,
      this.bugTotal,
      this.bugOpening,
      this.bugClosed,
      this.bugRate,
      this.executedNotPass});
}

class BugItem {
  String id;
  String assigneeAccount;
  String assigneeName;
  String title;
  String content;
  List<String> imgUrls;
  String submitterAccount;
  String submitterName;
  String priority;
  DateTime createTime;
  DateTime updateTime;
  String processTime;
}
